package run.newbug.jt.exception;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import run.newbug.jt.vo.SysResult;

@RestControllerAdvice
public class MyException {
    @ExceptionHandler(value = RuntimeException.class)
    public Object exception(Exception e){
        e.printStackTrace();
        return SysResult.fail();
    }
}